package com.xiaocikuai.smallchunks.entity.Transaction;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账单
 * </p>
 *
 * @author author1
 * @since 2024-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yshop_bill")
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账单id
     */
    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 支付id
     */
    @TableField("pay_id")
    private Integer payId;

    /**
     * 订单id
     */
    @TableField("oid")
    private Integer oid;

    /**
     * 收支情况
     */
    @TableField("pm")
    private Integer pm;

    /**
     * 明细种类
     */
    @TableField("category")
    private String category;

    /**
     * 明细类型
     */
    @TableField("type")
    private String type;

    /**
     * 明细数字
     */
    @TableField("number")
    private Float number;

    /**
     * 账单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注
     */
    @TableField("mark")
    private String mark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("freight_charge")
    private Integer freightCharge;


}
